message: fix(managed): fixed onExit/onExitFirst
diff: @@ -345,12 +345,10 @@ export function onExit_<R, E, A, R2, X>(
  T.let("outerReleaseMap", (s) => s.tp.get(1)),
  T.bind("innerReleaseMap", () => makeReleaseMap.makeReleaseMap),
  T.bind("exitEA", (s) =>
  - restore(
  T.provideAll_(
  - T.result(T.map_(self.effect, ({ tuple: [_, a] }) => a)),
  + T.result(restore(T.map_(self.effect, ({ tuple: [_, a] }) => a))),
  Tp.tuple(s.r, s.innerReleaseMap)
  )
  - )
  ),
  T.bind("releaseMapEntry", (s) =>
  add.add((e) =>
  @@ -359,9 +357,10 @@ export function onExit_<R, E, A, R2, X>(
  T.result,
  T.zipWith(
  pipe(cleanup(s.exitEA), T.provideAll(s.r), T.result),
  - (l, r) => T.exitZipRight_(l, r),
  + (l, r) => T.done(T.exitZipRight_(l, r)),
  __trace
  - )
  + ),
  + T.flatten
  )
  )(s.outerReleaseMap)
  ),
  @@ -416,12 +415,10 @@ export function onExitFirst_<R, E, A, R2, X>(
  T.let("outerReleaseMap", (s) => s.tp.get(1)),
  T.bind("innerReleaseMap", () => makeReleaseMap.makeReleaseMap),
  T.bind("exitEA", (s) =>
  - restore(
  T.provideAll_(
  - T.result(T.map_(self.effect, ({ tuple: [_, a] }) => a)),
  + T.result(restore(T.map_(self.effect, ({ tuple: [_, a] }) => a))),
  Tp.tuple(s.r, s.innerReleaseMap)
  )
  - )
  ),
  T.bind("releaseMapEntry", (s) =>
  add.add((e) =>
  