how to terminate a scripts ?

how to stop a running scripts itself?

 In ea ,I can use ExpertRemove() , but it dose not work in scripts. please help.

ExpertRemove();
Use return;