Add shutdown sync.