file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin