Saving the State of the Machine

When you click the Close button of your virtual machine window, at the top right of the window, just like you would close any other window on your system, asks you whether you want to save or power off the VM. As a shortcut, you can also press Host key + Q.

The difference between the three options is crucial. They mean the following:

The Discard button in the window discards a virtual machine's saved state. This has the same effect as powering it off, and the same warnings apply.