Continued work on ErrorHandler

Changed handle_error and handle_shutdown to create error exception
which is then sent to handle_exception. This reduces redundancies in
assigning values to class properties