When used with gevent, file descriptors are leaked