Fix sockets

Just one comment - can you do a follow-up commit that changes these to override pluginInitialize() instead (that's the newer initialize method), but more importantly - add a comment saying why it's in initialize instead of a background thread (that initialized gets called on the first exec(), and that it must finish before any other calls to exec() can start)