Add example code to catch system exceptions

Repackage some classes in an attempt to make it easier to identify which
code does what