take steps to prevent listeners from piling up on the socket