XOP-311: Modifications for VM Shutdown

First perform a clean_shutdown on a VM, if that fails then perform a hard_shutdown. 

This patch also resolves SCTX-942 and CA-88975.