Tried to flush the file after it was closed.