device: don't leak error quark API