I have a Linux VM on a Windows 10 host. I only use it when working on my PHPStorm projects, which is not an everyday thing. Sometimes I close PHPStorm, go on to working on unrelated tasks, and completely forget about my VM. Not only is that a waste of memory when I'm not using it, but if I shut down Windows I risk breaking the VM - that hasn't happened yet, but... (I know the idea of vagrant and provisioners is that it's no big deal to recreate a VM, but not all my customizations are in the provisioning files, due to my lack of knowledge of how to do that.)
So, is there a way in PHPStorm to attach something to the close event (I don't care if it's closing of the software overall or a project) to either halt the VM or remind me that it's still running?