diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 4875f4b..78e82fd 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1996,12 +1996,24 @@ function _drupal_exception_handler($exception) {
 }
 
 /**
+ * Shutdown handler to avoid a white screen.
+ */
+function _drupal_shutdown_handler() {
+  $lasterror = error_get_last();
+  if (( $lasterror['type'] == E_ERROR) || ($lasterror['type'] == E_PARSE) ){
+    // @TODO: Display this as the maintenance page?
+    print("Sorry, this page has encountered a fatal error. Please contact a site administrator and try again later.");
+  }
+}
+
+/**
  * Bootstrap configuration: Setup script environment and load settings.php.
  */
 function _drupal_bootstrap_configuration() {
-  // Set the Drupal custom error handler.
+  // Set the Drupal custom error handlers.
   set_error_handler('_drupal_error_handler');
   set_exception_handler('_drupal_exception_handler');
+  drupal_register_shutdown_function('_drupal_shutdown_handler');
 
   drupal_environment_initialize();
   // Start a page timer:
