code: public void stopConnection() throws CommunicationException, KeystoreException {
  		processedFailedNotifications();
  		try {
  			logger.debug("Closing connection");
  			this.socket.close();
  		} catch (Exception e) {
  			/* Do not complain if connection is already closed... */
  		}
  	}
docs: Read and process any pending error-responses, and then close the connection.
  @throws CommunicationException thrown if a communication error occurs
  @throws KeystoreException thrown if there is a problem with your keystore