Fix spin-on-close.