Return the correct value on process termination on Windows.