shutdown: loop - convert to enumerate match