Type "map return" at the end of the script. The script needs to be told what to do after execution is complete.
Thank you!