Make sure each shutdown instance runs once.