Improved goroutine management & recovery
Adjusted goroutine shutdown and recovery
Print hostid on connect
Improve testing