Protecting lighting devices from damage