Exit promise before emitting event.