disable wifi when connection lost