fixed recursive remove channel
added global logging
preventing ioexception