emit error on device only if there are listeners