They take a picture of the completed project. Here’s how to avoid the camera taking a picture when the lid has been raised: wait until the job has fully completed, the cooling down phase, etc.
Also, your lid camera takes two pictures as part of every print job, both a ‘before’ picture before the print starts, and an ‘after’ picture when the cooldown process completes after your print.’
That said, perhaps a software check could be written: if the interlock is determined to be open, the post job picture is not taken. I’m not sure if those instructions are passed on via the motion plan downloaded or created locally on the machine.