You're right, this is broken (the event handler needs to be added before doing the requestExecution).