Fixed error handling during resource delivery.