exits if input file isnt a file