catch exception and offer a chance for the calling app to handle them
Merge branch 'trycatch-branch' into custom