move deliver email under completed_at touch

This will avoid breaking the confirmation email, 'cause if not the completed_at date will be nil.