Update base.py: Added stack trace to handle_exit method in order to ease tracking down timeout issues in production which may result from incorrect usage of gevent