simplify tls aware shutdown