Improve README example: make TERM trap functional

Tweaks README custom worker example so that the `trap('TERM')` has access to the worker instance.