Implements new exception handling.