CopyMode to file by default and treekill on windows after timeout