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