Added support for restarting ipcontroller. Added some exit confirmations.