try catch around all of it

I tried a few scenarios to see what exceptions I could create,
but was unable to find any. So very generic exception handling to
prevent the application from crashing.