improved exception when device is not connected