Exit the process if there is an error with data fetch