Log errors that occur in the event dispatcher

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>