Move creation of socket into riak_event