Is there a way to stop EA execution?

 

I mean something like exit(0) or so...

I want to call it when something bad happens.

Reason: