[tor-relays] reg : closing circuits and corresponding TLS connections when application terminates