Thankyou for testing torp, if you are feeling adventurous, try modifying all the 'osso-xterm' lines with: Code: osso-xterm -e "ash -c 'sudo somecommand;read foo;exit;'" i.e. add the exit command as shown above to the end of each call to osso-xterm.
osso-xterm -e "ash -c 'sudo somecommand;read foo;exit;'"