while( monThread.isAlive() ) { System.out.println("MonThread is stillalive!"); try { Thread.sleep( 2 ); } catch( Exception e ){} }
	public synchronized void removeEventListener()	{		if (debug)			System.out.println("RXTXPort:removeEventListener()");		if( monThreadisInterrupted == true )		{			monThread = null;			SPEventListener = null;			Runtime.getRuntime().gc();			return;		}		if( monThread != null && monThread.isAlive() )		{			if (debug)				System.out.println("RXTXPort:Interrupt=true");			monThreadisInterrupted=true;			try {				monThread.join(1000);			} catch (Exception ex) {				/* yikes */				ex.printStackTrace();			}		}		monThread = null;		SPEventListener = null;		Runtime.getRuntime().gc();	}