def METHOD_NAME():
  """
  Stop the listening server which was created with a call to listen().
  """
  global _udslistener
  logging._acquireLock()
  try:
    if _udslistener:
      _udslistener.abort = 1
      _udslistener = None
  finally:
    logging._releaseLock()