Move socket invocation right before it is used

This needs to happen here since zeromq does its work postfork.
By putting the context invocation within the worker then
everything connects properly.