def clean_socket_close(sock):
 _LOGGER.info('UPNP responder shutting down.')
 sock.close()

def clean_socket_close ( sock ) : _LOGGER . info ( 'UPNP responder shutting down.' ) sock . close ( )
close a socket connection and logs its closure .