private void clear() { connectionManager.disconnectAndCloseAll(); // Only re-initialise if it has been initialised already if (editConnectionsController != null) { initialiseEditConnectionsWindow(); } }