@Override public void onDestroy() { FLog.i(TAG, "onDestroy"); NetworkManager.getInstance().stop(); this.unregisterReceiver(mReceiver); unregisterReceiver(nlservicereciver); mEngine.stop(); closeSwClient(); mWSManager = null; StateManager.getInstance().clearState(); }