Forgot to close file on complete