Core/Mains: Handle SIGBREAK to achieve clean shutdown when users click X button on windows