Support TERM signal on Windows