What happens
When the correlator detects a runtime error, an exception is raised. If that is not caught by a catch block, one of the two things happen. If this is called from the onload() action, from an action that has been spawned, or from an action within a stream query, the correlator terminates the monitor instance that contains the code that caused the error and terminates any listeners that were set up by the monitor instance being terminated. If the exception is within a listener or stream listener, the exception will be logged and the listener activation will be terminated, stopping the processing of the event. The monitor instance continues to process future events.
If an ondie() action is defined in a monitor, then all unhandled exceptions and runtime errors will terminate the monitor instance and all listeners and state within it.
Unhandled exceptions should still be avoided even if they do not terminate the monitor instance, since they can render the instance's state invalid, affecting the results from future events.