Alloc handle memory first then hook, we can benifit: 1. Don't have to do malloc in a critical section 2. Don't have to do esp_intr_free in a critical section