Close client after scheduler disconnect

Ah, I see. This is fine then.