public final void cleanUp() {
		try {
			TCPmessage("Closing sockets...", 1, true);
			output.close();
			input.close();
			connection.close();
			MotorControls.controlsEnabled(false);
			TCPmessage("Successfully closed sockets.", 0, false);
			TCPmessage("Connection closed", 0, true);
		}catch(IOException ioException){
		}catch(NullPointerException nullPointerException){
			LoginTCP.connectBtn.setSelected(false);
		}
	}