private void closeAll() throws IOException
	{
		if(in1 != null)
			in1.close();
		if(in2 != null)
			in2.close();
		if(out1 != null)
			out1.close();
		if(out2 != null)
			out2.close();
		if(p1 != null)
		{
			try
			{
				p1.close();
			} catch (IOException e)
			{
				e.printStackTrace();
			}
		}
		if(p2 != null)
		{
			try
			{
				p2.close();
			}
			catch (IOException e)
			{
				e.printStackTrace();
			}
		}
	}