Modification for catching exceptions due to removing input. Removing intup  now causes to end device. No longer stops the whole program.`