Modified telnet server to add a stop command and implemented a channel
group to hold all created channels so they can be closed on shutdown.
Implemented full start and stop lifecycle.