File closing added