support batch shutdown for IVS

Also improved batch shutdown to work with more than one switch class.