remove stack context for handle_exception