Added logging to the Application error handlers;