new feature: close device