Allow catching PHP errors
Merge pull request #98 from SlikNL/catch-errors

Allow catching PHP errors