Grid bug fix
C: A locked mutex was being destroyed during connection shutdown
C: The MgmtMasterPlugin on condor_master crashes
F: The QMF Agent was never being notified of the shutdown, and would continue running after the connection - and its resources - was released. Eventually, the Agent thread would attempt to access the released connection's resources - in this case a Mutex that had been freed - which would result in the crash. This behaviour has be fixed by adding new code to the Agent which receives notification when the connection is released, and allows the Agent to remove the connection from its internal database.
R: On connection shut down, a QMF Agent will properly release all resources associated with the connection. The Agent will no longer attempt to access "stale" connection data - such as the mutex - which would cause a crash.
A locked mutex was being destroyed during connection shutdown, which caused the MgmtMasterPlugin on condor_master to crash. New code has been added to the agent, which allows it to remove the connection from its internal database. QMF agents now properly release all resources associated with the connection, preventing it from crashing.