Improved the exception handling system.