Duration=0 is too slow

The same for LAN API, looks like the bulb chip is doing some background work and can’t process shutdown immediately. I got Original gen1 and sometimes it takes up to 5 seconds to turnoff.
As a workaround you can set zero brightness, color change requests looks much responsive.
See related thread