fix: make SSH timeout cancellation terminate promptly (#2563)