EventEnd()

The command you should be used to end all of your events.  Placed after all event commands but before dialogue text, and is placed by default on all Event templates generated by this program.