Added close(file)