Move failure trap after functions it uses
Move failure trap after functions it uses

Move the failure trap after the functions it uses, so that
"delete_all" is defined when it is triggered.

Change-Id: Icb2465d0f834b8cb2d46dca3c7df4ae06e49d9b5

mssumanth/devstack,mmasaki/devstack,richliu/devstack,liuquansheng47/devstack,noironetworks/devstack,dtroyer/devstack,pczerkas/devstack,Mahito/devstack,costingalan/devstack,wenhuizhang/devstack,atulpatil301/devstack,eharney/devstack,CloudServer/devstack,samgoon/devstack,parul24/devstack,mc2014/devstack,liuquansheng47/devstack,LoHChina/devstack,NaokiMiyata/devstack,bigswitch/devstack,avvocatodemarchis/devstack,TwinkleChawla/devstack,mmasaki/devstack,HPCHub/devstack,atulpatil301/devstack,group-policy/devstack,pczerkas/devstack,eharney/devstack,vsham20/devstack,varunarya10/devstack,openstack-dev/devstack,pacinete/devstack,CloudServer/devstack,bq-xiao/devstack,avvocatodemarchis/devstack,olivierlemasle/devstack,openstack-dev/devstack,parul24/devstack,samgoon/devstack,dirkmueller/devstack,prithivm/branch01,ozamiatin/devstack,prithivm/branch01,TwinkleChawla/devstack,bswartz/devstack,herrsechs/devstack,costingalan/devstack,vishnugonela/devstack,noironetworks/devstack,NaokiMiyata/devstack,thomasem/devstack,herrsechs/devstack,nawawi/openstack,olivierlemasle/devstack,j4/devstack,mc2014/devstack,HPCHub/devstack,varunarya10/devstack,bq-xiao/devstack,bigswitch/devstack,j4/devstack,thomasem/devstack,dtroyer/devstack,richliu/devstack,ozamiatin/devstack,Mahito/devstack,wenhuizhang/devstack,flavio-fernandes/devstack,vsham20/devstack,flavio-fernandes/devstack,LoHChina/devstack,dirkmueller/devstack,nawawi/openstack,pombredanne/devstack,upadhyay-prashant/devstack,upadhyay-prashant/devstack,mssumanth/devstack,pacinete/devstack,bswartz/devstack,vishnugonela/devstack,pombredanne/devstack,group-policy/devstack