Among other things, various embodiments of the present invention address the problem of excess solder, adhesive, or other sealing material used in sealing a lid wafer to a device wafer that contains a MEMS device, integrated circuit, or infrared detector.