You probably need to close the device here.