bugfix for greenlet error handle