diff --git a/src/Internal/Windows/SocketConnector.php b/src/Internal/Windows/SocketConnector.php index f3018f7..cb11917 100644 --- a/src/Internal/Windows/SocketConnector.php +++ b/src/Internal/Windows/SocketConnector.php @@ -102,7 +102,7 @@ public function connectPipes(WindowsHandle $handle, Cancellation $cancellation): $exitCode = $this->readExitCode($handle->exitCodeStream); $handle->joinDeferred->complete($exitCode); - } catch (HandshakeException) { + } catch (\Throwable) { $handle->joinDeferred->error(new ProcessException("Failed to read exit code from process wrapper")); } finally { $handle->status = ProcessStatus::Ended;