Scripted equivalent to pressing Escape in the Listener

Is there a way to kill any MAXScript activity programmatically?