Register error/exception handler in global.php