title: Whiptail inputbox cancel not working
body: <p>I've created a loop to go through some Virtual Machine setup functions for a new user, which goes through things like adding a hostname, ip address, etc.  However, if I click the 'Cancel' button within any of the whiptail windows, it just moves on to the next whiptail element in the loop.  How can I set it up to cancel the loop and go back to the main menu window if <code>Cancel</code> is selected instead?</p>
  
  <pre><code>while true
  do
  
  OPTION=$(whiptail --title "Configuration Menu" --menu "Choose an option" 20 78 10 \
  "1"     "Show current configuration." \
  "2"     "Setup Wizard." \
  ...
  "0"     "EXIT" 3&gt;&amp;1 1&gt;&amp;2 2&gt;&amp;3)
  
  exitstatus=$?
  
  case "$OPTION" in
   ...
   2)
      # Setup hostname
      HOSTNAME=$(whiptail --inputbox "Hostname" 8 78 `hostname` --title "Serial Number" 3&gt;&amp;1 1&gt;&amp;2 2&gt;&amp;3)
      ...
      # IP address configuration
      IP_CONFIG=$(whiptail --title "Network Configuration" --radiolist "Choose a configuration option" 20 78 10 \
          "DHCP" "Use Dynamic Host Protocol" ON \
          "STATIC" "Configure Static IP" OFF 3&gt;&amp;1 1&gt;&amp;2 2&gt;&amp;3)
       ...
   ;;
  esac
  </code></pre>
  
  <p>Here is what the main menu looks like:
  <a href="https://i.stack.imgur.com/WIOdv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WIOdv.png" alt="enter image description here"></a></p>
  
  <p>And if when clicking on 'cancel' in the first input box...
  <a href="https://i.stack.imgur.com/bQPMZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bQPMZ.png" alt="enter image description here"></a></p>
  
  <p>I'm sent to the next whiptail element instead of canceling to the main menu:
  <a href="https://i.stack.imgur.com/IPihO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IPihO.png" alt="enter image description here"></a></p>