Fix 1415176
Fix 1415176

Debug hooks was not passing the exit status from the debug
session unless it happened to be the last tmux window.
I made the exit status be stored and retrieved by the script
that is being called by RunHooks

perrito666/juju,alesstimec/juju,makyo/juju,marcmolla/juju,mikemccracken/juju,tych0/juju,anastasiamac/juju,fwereade/juju,mjs/juju,waigani/juju,bac/juju,ericsnowcurrently/juju,alesstimec/juju,marcmolla/juju,tsakas/juju,marcmolla/juju,ericsnowcurrently/juju,dooferlad/juju,gabriel-samfira/juju,mjs/juju,dimitern/juju,axw/juju,alesstimec/juju,kat-co/juju,frankban/juju,reedobrien/juju,axw/juju,mhilton/juju-juju,mjs/juju,dooferlad/juju,wwitzel3/juju,thomnico/juju,ericsnowcurrently/juju,frankban/juju-tmp,anastasiamac/juju,tych0/juju,Altoros/juju-cloudsigma,AdamIsrael/juju,bogdanteleaga/juju,bac/juju,frankban/juju,frankban/juju-tmp,bogdanteleaga/juju,bz2/juju,dimitern/juju,anastasiamac/juju,makyo/juju,perrito666/juju,gabriel-samfira/juju,howbazaar/juju,tsakas/juju,bz2/juju,reedobrien/juju,reedobrien/juju,axw/juju,perrito666/juju,anastasiamac/juju,wwitzel3/juju,thomnico/juju,mhilton/juju-juju,thomnico/juju,bz2/juju,waigani/juju,alesstimec/juju,ericsnowcurrently/juju,davecheney/juju,voidspace/juju,frankban/juju,waigani/juju,wwitzel3/juju,voidspace/juju,mikemccracken/juju,axw/juju,waigani/juju,perrito666/juju,AdamIsrael/juju,fwereade/juju,kat-co/juju,frankban/juju,mjs/juju,Altoros/juju-cloudsigma,kat-co/juju,bac/juju,dooferlad/juju,bz2/juju,bac/juju,voidspace/juju,dimitern/juju,alesstimec/juju,Altoros/juju-cloudsigma,bac/juju,mikemccracken/juju,dooferlad/juju,mhilton/juju,mjs/juju,cloud-green/juju,dimitern/juju,cloud-green/juju,Altoros/juju-cloudsigma,tasdomas/juju,howbazaar/juju,kat-co/juju,mikemccracken/juju,tych0/juju,tasdomas/juju,davecheney/juju,marcmolla/juju,voidspace/juju,makyo/juju,axw/juju,anastasiamac/juju,frankban/juju-tmp,mikemccracken/juju,reedobrien/juju,gabriel-samfira/juju,macgreagoir/juju,mjs/juju,bogdanteleaga/juju,cloud-green/juju,marcmolla/juju,macgreagoir/juju,macgreagoir/juju,kat-co/juju,mhilton/juju,cloud-green/juju,tych0/juju,gabriel-samfira/juju,mhilton/juju-juju,howbazaar/juju,tasdomas/juju,frankban/juju-tmp,howbazaar/juju,mhilton/juju,davecheney/juju,ericsnowcurrently/juju,wwitzel3/juju,davecheney/juju,macgreagoir/juju,howbazaar/juju,frankban/juju,fwereade/juju,bogdanteleaga/juju,fwereade/juju,dooferlad/juju,mhilton/juju-juju,makyo/juju,macgreagoir/juju,thomnico/juju,tasdomas/juju,gabriel-samfira/juju,tsakas/juju,mhilton/juju,mjs/juju,bz2/juju,reedobrien/juju,perrito666/juju,tsakas/juju,AdamIsrael/juju,AdamIsrael/juju,dimitern/juju