Added ability for worker to execute registered messageHandlers