Turbopack: shutdown turbo-tasks even when build crashes (#77937)
### What?
When a Turbopack build finishes with a crash and throws an error, we still want to make sure to gracefully shutdown turbo tasks. This ensures that cache and trace is written correctly.