def shutdown(opts):
 log.debug('Proxy module {0} shutting down!!'.format(opts['id']))
 try:
  thisproxy['conn'].close()
 except Exception:
  pass

def shutdown ( opts ) : log . debug ( 'Proxy module {0} shutting down!!' . format ( opts [ 'id' ] ) ) try : thisproxy [ 'conn' ] . close ( ) except Exception : pass
shuts down the device .