retstart_nodes method shutdowns nodes before destroying them

Change-Id: Ic77cbf9dd605dd6389fdb2f65fa43643c598f800
Merge "retstart_nodes method shutdowns nodes before destroying them"