arquillian/arquillian-container-glassfish — pull request #19 by VineetReynolds (2012-11-17 21:34:20+00:00)
Title: ARQ-837 Add a shutdown hook to handle missing testRunFinished calls.

When using Surefire 2.7.2, Arquillian does not obtain notifications that the JUnit test runner has completed (ARQ-282). The shutdown hook compensates for this erroneous behavior in certain versions of Surefire.

The hook is meant to cater to this scenario alone, since it takes a few seconds to run; it executes the stop-domain command against the running instance of GF.