add atexit handler for gevent

Thanks to @dcolish for remembering this module.