Embodiments of the invention include a vessel having an opening and a detachable cover for covering the opening. The cover includes a semiconductor device with an active layer disposed between an n-type region and a p-type region. The active layer emits radiation having a peak wavelength in a UV range. The cover also includes a sensor for detecting whether the cover is covering the opening.