Index: LoggerAppenderMail.php
===================================================================
--- LoggerAppenderMail.php	(revision 1135098)
+++ LoggerAppenderMail.php	(working copy)
@@ -76,6 +76,10 @@
 	 */
 	public function __construct($name = '') {
 		parent::__construct($name);
+
+		// Want to send out errors even if PHP dies for some reason.  Otherwise the death might not
+		// be properly logged (LOG4PHP-159)
+		register_shutdown_function(array($this, 'close'));
 	}
 
 	public function __destruct() {
