mytarget = nil

      print_status("Automatically detecting the target...")
      connect
      disconnect