Implement #withPreAndPost method (on wrapper for implicit conversion)
which provides a convenient mechanism to run code blocks before and
after a block of code regardless of exception throwing.