Close connection in Put when pool is closed.