Improve reliablity of Channel class, fix logging and InputThread for the MODE subtypes.