Add handler for all events that are emitted for debugging