Future<bool> getShouldReconnect() async { return _lock.synchronized(() => _shouldAttemptReconnection); }