Report error from callback function with full stack trace
Ignore errors while closing connection
Add tests for updating of hostNames
Ignore callback function call on irregular case