Close client after scheduler disconnect

But `conn` is a private field so I can't initialize this in `scheduler_test` right?