Prevent race condition between starting job and closing file