Fix interaction of continuations and handlers.