Now closes file