1. A method comprising: tracking a first set of execution contexts inducted into a scheduler in a process executing on a computer system; tracking a second set of execution contexts created within the scheduler; and finalizing the scheduler in response to each of the first set of execution contexts exiting the scheduler and each of the second set of execution contexts being retired by the scheduler.