doc: when, call_stack cleanup