add event_handler after shared_ptr's constructor is complete