devDone function

Closes zero or more open devices except screen (interactive) devices