Added option to use our interal error handler for PHP errors, as to not break API output