close device too