Handle issues where the file is not readable and throws an error