[core] Use SIGTERM to signal graceful exit

This makes willie -q work on Windows
[Tests]Merge with Master.