by anacrolix@google.com:
On Windows a CTRL_CLOSE_EVENT message is sent prior to unavoidable termination. This
should be represented by notifying the process with a SIGTERM.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683242(v=vs.85).aspx