L light is continuously on

The LED is driven by an op amp/comparator. The Opamp input is connected to D13.
If D13 is not used, the pin may float to a high enough level for the op amp to see it as high and thus cause the L LED to turn on.

Setting D13 as low output as dannable shows will keep the LED off.