Catch window close event to run down script

Add warning when daemonize on windows
Merge pull request #21 from linusyang/windows

Run down script when closing app on Windows