Ensure that error messages always get returned from caught exceptions