public void close()
	{
		/* First check if the Session is even open. */
		
		status = Status.DISCONNECTED;
		if (sender != null)
			sender.send("DIS:", outStream);
		try
		{
			Thread.sleep(2000);
		}
		catch (InterruptedException e)
		{
			e.printStackTrace();
		}
		try
		{
			if (socket != null)
				socket.close();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
		if (sender != null)
			sender.stop();	
	}