made exit possible if file deleted