uloop: Add flag to allow callback to be called on error conditions.