Hi. The same thing happens with notepad. It closes when the script ends.