How to hide Terminal Window when a script is running
You could run your script using the screen utility. This will detach the program from the terminal so even if it is closed the program execution will continue.

Screen will exit once the program running in it has finished but not before.