It exists for a reason! Otherwise we can't distinguish errors (like from unhandled exceptions).
Check if event handlers have been defined before attempting to call them. This prevents the bot from crashing in the case that an event handler hasn't been defined.