Exception handling and debug error handling.