Remove one possible cause of hanging on fast program close.