Little fixes to closing threads and Smooth.