Fixes #4583: add error messages when something can go bad in deployment
Merge pull request #463 from ncharles/bug_4583/dev/add_error_handling

Fixes #4583: add error messages when something can go bad in deployment