Check vm state to make sure its not poweroff in all commands; fixes #28