infinispan/infinispan — pull request #1191 by galderz (2012-06-21 19:39:15+00:00)
Title: ISPN-2117 Protect against cache manager being left open

https://issues.jboss.org/browse/ISPN-2117

I don't understand how the cache manager could leak. I tried to test exceptions happening at different stages after cache manager was created, but could not find any obvious leak.

So, instead what I've done is guarantee that the cache manager in the test is stopped in a safe way, and make sure the cache manager created is killed safely too.

`5.1.x` branch too: `t_2117_5`