def close_tunnel(_data):
 global KNXTUNNEL
 KNXTUNNEL.disconnect()
 KNXTUNNEL = None

def close_tunnel ( _data ) : global KNXTUNNEL KNXTUNNEL . disconnect ( ) KNXTUNNEL = None
close the nkx tunnel connection on shutdown .