terminal: Do not auto close shell terminals if they error out (#38182)

Closes https://github.com/zed-industries/zed/issues/38134

This also reduces an annoying level of shell nesting

Release Notes:

- N/A
393d6787a3Lukas Wirth committed on 9/15/2025, 10:09:25 AM· committed by GitHubparent4a58250
2 files changedLine totals unavailable