private void unregisterSelectableChannel(RegisterableChannelImpl channel, int ops) 
											throws IOException, InterruptedException {
		if(stopped) 
			return; //do nothing if stopped
		else if(!isRunning())
			throw new IllegalStateException("ChannelMgr is not running, call ChannelManager.starimport " +
                    "biz.xsoftware.api.nio.test.nioapi.SelectKey;t first");
		else if(Thread.currentThread().equals(selector.getThread()))
			Helper.unregisterSelectableChannel(channel, ops);
		else
			asynchUnregister(channel, ops);			
	}