Ensure that Commands are cleaned up before RequestGroupMan is deleted
InternalMessageDigestImpl: Code cleanup
InternalMessageDigestImpl: Fix memory leak