guard against reopened sockets