This test definitely verifies that the thing gets closed.  But it doesn't verify that things don't get closed while they are in the process of running.  Is it possible to setup a test that verifies the closing behavior in case the thing is queued up?