Terminate the program if the file type is unknown