log fatal errors using a shutdown function

like described here: http://stackoverflow.com/questions/277224/how-do-i-catch-a-php-fatal-error

additionally set display_errors to false as we output an error message ourself now.
Only do that if error log is enabled (ie on production)