term-handle-exit properly cycles