Updated script to sleep until node is out of mcollective group