Fixed up listeners to be initiated only when needed and properly
cleaning them up now as well. Standardized on the close call for
clearing out a netstream rather than a finalizeClose.