closing file right away