Simulate a complete custom exception handler by redirecting uncaught events.
diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php
index c962fda..67c94cf 100644
--- a/system/core/CodeIgniter.php
+++ b/system/core/CodeIgniter.php
@@ -73,6 +73,7 @@
  * ------------------------------------------------------
  */
 	set_error_handler('_exception_handler');
+	register_shutdown_function('_shutdown_handler');
 
 	if ( ! is_php('5.4'))
 	{