Added error handling.  Added exec safety.
Merge pull request #1 from amberdoctor/master

Added error handling.  Added exec safety.