nicer exit when can't open file