WIP: various upgrade shutdown logic

* TODO: OS Specific Logic
* TODO: Pass down the command line argument to the options