Ensuring Background Task Completes in TypeScript - Effect Community