Replaced forkFinally with use of `finally` for backwards compatibility