Return the correct return value on Windows process termination.