I think that would require a separate `try...finally` block (or a withCacheManager call), as we want to check that the `IllegalStateException` is thrown from the `MapReduceTask` constructor. Adding just the remove call seemed simpler.