Made error message handling a little better.

I wrapped the main body in a try to deliver a slightly more sensible
error message in the case of a missing file.