def close(self):
        """Clear the connection pool and stop the monitor.

        Reconnect with open().
        """
        if self._publish:
            self._events.put((self._listener.publish_server_closed,
                              (self._description.address, self._topology_id)))
        self._monitor.close()
        self._pool.reset()
Clear the connection pool and stop the monitor.

        Reconnect with open().
        
stackoverflow/venv/lib/python3.6/site-packages/pymongo/server.py