And it doesn't matter if it is executed directly or inside spawn {} construct and if the data returned immediately or at the end.
This video shows what happens if extension "test" is spawn called. All extension does is it delays dll thread completion for 5 seconds.