I think the file won't be closed automatically, so you should close it.