title: How do I stop a process running in IntelliJ such that it calls the shutdown hooks?
body: <p>When I run my program in IntelliJ then use the STOP button, it does not call my shutdown hooks that I've created. Is there a way in IntelliJ to have those called on shutdown?</p>