fix(worker exit): when master exits after sending sigterm, exit worker

do not remove disconnect listener when master fails after askin for
stop.
added an example describing the problem
1.2.3