add in vm state check after stop command