This is only Windows specific, since in Unix system this works properly.
I have a java cli application (its actually a service written using spring-boot) that runs in the console (cmd).
When pressing ctrl+c in console the application gets killed on windows in a way that java virtual machine itself still remains in memory but the service is killed. This is very annoying since some of the resources still remains locked.
On uinux systems this works by generating an SIGINT and service has the possibility of graceful stop and jvm also exit properly.
Any workarounds?