Set completion on error