ensure graceful exit at the end of the script, for Windows