Fix bug in retry_wrapper: gevent.GreenletExit is not an Exception