fixes bug for re-register new sockets on process