Sorry, when I said terminated I did'nt mean to exit, I mean to do the same as "Proyecto1.exe" do.

Thanks