close output device on group exit