Example program for handling exceptions in a wrapper.
Avoids needing a try-catch-finally in each function.