acp: Ensure connection subprocess gets killed on drop (#37858)

It appears that in macOS, the `AcpConnection._wait_task` doesn't always
get dropped when quitting the app. In these cases, the subprocess would
be kept alive because we move the `child` into it.

Instead, we will now explicitly kill it when `AcpConnection` is dropped.
It's ok to do this because when the connection is dropped, the thread is
also dropped, so there's no need to report the exit status to it.

Closes #37741

Release Notes:

- Claude Code: Fix subprocess leak on app quit
d7a9be03d1Agus Zubiaga committed on 9/9/2025, 5:22:19 PM· committed by GitHubparentcdbddc2
1 file changedLine totals unavailable