public void closeConnection() {
		try {			
			if(input != null) input.close();
			if(output != null) output.close();
			if(connection != null) connection.close();
		}
		catch(IOException ioException) {
			userInterface.displayErrorMessage("Error closing connection properly");
		}
	}