Added some logging because Application_Error doesn't always work.