Trying to make sure files are definitely closed.