Better handling of multiple lights and shutdown.