src: fix Worker termination when --inspect-brk is passed
#53724
+114
−20
Merged