Exit if failed to read file