exit afater EOF