MINOR: mworker: keep and clean the listeners

Keep the listeners that should be used in the master process and clean
them in the workers.
3 files changed