while coroutine die, firstly schedule to exit routine for memeory recliam and then schedule to parent if ready