This should resolve #56 the issue with errors not being reported correctly.