Modified default exception handling.