cli: Close the device after shutting down streams.