- Implemented a detection of disconnects in the ConnectionImpl.
- Added onDisconnect call-back functions.
- Gracefully disconnect when communication channels are done. In order to catch such events in child classes a call-back is introduced as well.