Coming up with some way of doing a generic dispatcher/exception handler/api call tracer/terminator.