Track errors encountered during pipeline and mark in database.