Wrap async with env.