add missing exception handling
Merge pull request #116 from mikeyman77/logic/exceptions

add missing exception handling