move libs and fix gevent error on close