Finalize gevent integration.