Exits if not correct file