public void Dispose() { Connection.StateChanged -= HandleConnectionStateChanged; ServiceManager.Get <Network> ().StateChanged -= HandleNetworkStateChanged; Connection.Dispose(); preferences.Dispose(); actions.Dispose(); actions = null; connection = null; preferences = null; account = null; }