void () { if (myStatus == ConnectionStatus.CONNECTED) { if (myRuntimeInstance != null) { myRuntimeInstance.disconnect(); myRuntimeInstance = null; } setStatus(ConnectionStatus.DISCONNECTED); for (LogManagersForProject forNextProject : myPerProjectLogManagers.values()) { forNextProject.disposeAllLogs(); } if (myMessageBusConnection != null) { myMessageBusConnection.disconnect(); myMessageBusConnection = null; } } }