In my shell script, my last lines are:
... echo \"$l\" done done exit
I have Terminal preference set to \"When the shell exits: Close the wind
This worked perfectly for me.. it just closes that execution window leaving other terminal windows open
Just open Terminal and go to Terminal > Preferences > Settings > Shell: > When the shell exits: -> Close if the shell exited cleanly
Then just add exit; at the end of your file.