also catch InvalidParameterException, ensure that exceptions are thrown even if strict mode is disabled
Merge pull request #46 from lunetics/handle_exceptions

also catch InvalidParameterException, handle strict mode off