Use `with` statement in order to always close the file.