Trap and report errors in event handler functions.