Adding way to shutdown a TCP listener