As someone who recently wrecked their MacBook's screen by leaving something hard and pointy in between keyboard and screen when closing the lid, I wonder if one can turn on the webcam briefly before the lid closes and sound an alarm if it detects anything in the way.