wait for the parent proc to go away before we unlink the file