close resource leak in run_process on Windows