public void changeSocket( int port, String host )
	{
		Socket newSocket;
		System.out.println( "Connecting to " + host + ":" + port );
		try
		{
			newSocket = new Socket( host, port );
			System.out.println( "Connected to new socket" );
		}
		catch( ClosedByInterruptException ex )
		{
			System.out.println( "input stream interrupted" );
			return;
		}
		catch( UnknownHostException ex )
		{
			System.out.println( "exception thrown in change socket line " + ex.getLocalizedMessage() );
			ex.printStackTrace();
			return;
		}
		catch( IOException ex )
		{
			System.out.println( "exception thrown in change socket line " + ex.getLocalizedMessage() );
			ex.printStackTrace();
			return;
		}
		if( newSocket.isConnected() )
		{
			System.out.println( "killing threads" );
			inputListener.interrupt();
			System.out.println( "InputListener killed" );
			outputWritter.interrupt();
			System.out.println( "OutputListener killed" );
			this.socket = newSocket;
			System.out.println( "Getting new listeners" );
			try
			{
				outputWritter = new Thread( new OutputSender( outputBlockingQueue, newSocket ) );
				outputWritter.start();
				System.out.println( "has new output listener" );
				inputListener = new Thread( new InputListener( actionsBlockingQueue, newSocket ) );
				inputListener.start();
				System.out.println( "has new Input listener" );
			}
			catch( Exception ex )
			{
				System.out.println( "exception thrown in change socket line " + ex.getLocalizedMessage() );
				ex.printStackTrace();
			}
			System.out.println( "connected" );
		}
	}