/** * Attempts to disconnect from the tracker. * * @return "Tracker disconnected.\n" if the disconnect was successful * @throws TrackerException thrown if not connected, or if the disconnect attempt failed */ String disconnect() throws TrackerException { isConnected(); trk.disconnect(); Bookkeeper.getInstance().toggleTrkCon(); if (trk.connected()) { throw new TrackerException("Failed to disconnect from the tracker.\n"); } return "Tracker disconnected.\n"; }