Added a cleaner way to catch PHP errors: ErrorHandler