Added the failure case when processing fails.