public void disconnectFromURL()
	{
		connected=false;
		try
		{
			if(out!=null)
			{
				out.write(new byte[]{(byte)255,(byte)253,18}); //iac, iacdo, logout
				out.flush();
			}
		}
		catch(final Exception e) { }
		try
		{
			if((in!=null)&&(in[0]!=null))
				in[0].close();
		}
		catch(final Exception e) { }
		try
		{
			if(out!=null)
				out.close();
		}
		catch(final Exception e) { }
		try
		{
			if(sock!=null)
				sock.close();
		}
		catch(final Exception e) { }
		in=null;
		out=null;
		sock=null;
	}