Upgrade wraper, added error handling
Upgrade wraper, added error handling

blueprint upgrade-to-5-1
Related-bug: #1333350
Change-Id: I56ff3b2b1a2f0d4c63787785640af531986eab75

SmartInfrastructures/fuel-main-dev,teselkin/fuel-main,stackforge/fuel-main,AnselZhangGit/fuel-main,Fiware/ops.Fuel-main-dev,dancn/fuel-main-dev,eayunstack/fuel-main,eayunstack/fuel-main,AnselZhangGit/fuel-main,huntxu/fuel-main,SergK/fuel-main,dancn/fuel-main-dev,zhaochao/fuel-main,Fiware/ops.Fuel-main-dev,teselkin/fuel-main,SmartInfrastructures/fuel-main-dev,eayunstack/fuel-main,ddepaoli3/fuel-main-dev,stackforge/fuel-main,Fiware/ops.Fuel-main-dev,zhaochao/fuel-main,ddepaoli3/fuel-main-dev,SergK/fuel-main,AnselZhangGit/fuel-main,dancn/fuel-main-dev,ddepaoli3/fuel-main-dev,ddepaoli3/fuel-main-dev,stackforge/fuel-main,teselkin/fuel-main,zhaochao/fuel-main,zhaochao/fuel-main,huntxu/fuel-main,SergK/fuel-main,dancn/fuel-main-dev,Fiware/ops.Fuel-main-dev,SmartInfrastructures/fuel-main-dev,SmartInfrastructures/fuel-main-dev,AnselZhangGit/fuel-main,teselkin/fuel-main,huntxu/fuel-main,zhaochao/fuel-main