Support exit signal on Windows platforms.