There's also the proximity sensor that could be used, I think. One reason you might want to take a photo with the cover would be for a noise baseline or to map hot pixels. Some cameras can do that noise reduction automatically even: for exposures longer than a certain value, take a second identical one with the shutter closed and use that to subtract the noise from the first one.