Make sure to keep arrays alive in closures and async