Fix issue #403

Hi Nathan, I believe this patch fixes issue #403.

You are right, it was not race condition, but rather some already closed sockets might be left in the new cached sockets map, due to the wrong invocation to dissoc.