Added code to stop diodes before any delayed action is pefrormed in ledController.