GS-11239 Added terminateManagementMachine to fix leaked node problem