private void closeObjects() {
		try {
			if (out != null)
				out.close();
			if (in != null)
				in.close();
			if (socket != null)
				socket.close();
		} catch (IOException e) {
			System.out.println("Error trying to close objects");
			e.printStackTrace();
		}
		isOpen = false;
	}