devOff function

Closes zero or more devices