Fixed problem with previous commit where application instance was not being set properly in the delegate
Fixed issue with View Controller routing still trying to return results when running from the cli
Properly implemented return codes when running from the cli