Closes the idle connections and frees the pool once every borrowed one is back.
close_pool :: (pool: *Pool)