bugfix for gevent exception handle