examples/tracing: Handle KeyboardInterrupt

Signed-off-by: Gary Lin <glin@suse.com>
diff --git a/examples/tracing/tcpv4connect.py b/examples/tracing/tcpv4connect.py
index 81385e8..26d9376 100755
--- a/examples/tracing/tcpv4connect.py
+++ b/examples/tracing/tcpv4connect.py
@@ -94,6 +94,8 @@
 	except ValueError:
 	    # Ignore messages from other tracers
 	    continue
+	except KeyboardInterrupt:
+	    exit()
 
 	# Ignore messages from other tracers
 	if _tag != "trace_tcp4connect":