Add 'Close' function to properly release all resources for a host pool.

This is necessary for usage of the lib with multiple dynamically created hostpools. Currently there is no easy way to release resources taken in each hostpool because of the ticker go routine.
also, that proposed change to the select loop looks right; push it up to your branch and this PR will reflect that.