title: Can Fabric know to expect a host to disconnect?
body: <p>I'm writing a Fabric script to provision some OpenWRT access points. Part of my script involves assigning a new static IP to the APs, which requires restarting the network interface.</p>
  
  <p>My problem is that when I do this, Fabric hangs because the connection to the host disappears.</p>
  
  <p>Is there a way to tell Fabric to either:</p>
  
  <ol>
  <li>Expect this command to fail to return</li>
  <li>Connect to the new host IP automatically</li>
  </ol>
  
  <p>For reference, this is the output from the task:</p>
  
  <pre><code>[root@192.168.1.1:22] run: uci set network.lan.proto=static
  [root@192.168.1.1:22] run: uci set network.lan.ipaddr=&lt;my IP here&gt;
  [root@192.168.1.1:22] run: uci commit network
  [root@192.168.1.1:22] run: /etc/init.d/network reload
  
  &lt;Fabric hangs indefinitely&gt;
  </code></pre>