Add graceful process termination for windows