Adding try-finally blocks to ensure postAction and tearDown gets called on failures