Adding error handling workerpool

This PR is to introduce a error handling worker pool and improve logging while shutting connections