I Think i no why but i wonder what the way round it is
When you open terminal that is for example your login shell, when you run a script it opens a new shell and your login goes into hibernation if you like when script finishes that shell shuts and put's you back in login shell
That what i think happens i am probably way off
