fix windows shutown bug