Why does"program terminated exit code 0 "appear in the stdio window? How can we clear it?

This happens when I am sending some data through ethernet using TCP protocol from RCM 4000 ,because of this I can’t read the socket from another PC present in the same network.How can I save my program from getting exit?

Exit code 0 simply means that your program ended.