public void closeConnection()
	{
		if(connection == null)
			return;
		try {
			connection.close();
			if(input != null) input.close();
			if(output != null) output.close();
		}
		catch(IOException ioException) {
			System.err.println("Error closing connection");
		}
	}