Generic exception handler
Merge pull request #139 from mapkyca/exceptions

Generic exception handler