Handle docker socket teardown gracefully

Fixed an issue where sandbox cleanup would fail with a traceback if the Docker daemon socket was already gone during teardown. The fix catches connection errors in addition to Docker API errors, ensuring cleanup remains best-effort regardless of daemon reachability.