[#1733] Correctly pass the promise to the ctx.write(...) in AbstractTrafficShapingHandler