Simulate a complete custom exception handler by redirecting uncaught events.
Remove unnecessary chdir() in the shutdown handler.
Add changelog entry for #2633.
Make the changelog entry for #2633 more descriptive.
Merge pull request #2633 from kaiwangchen/simulate_complete_exception_handler

Simulate a complete custom exception handler by redirecting uncaught events