Close client after scheduler disconnect

Since this function doesn't do anything, you can just replace its use with this struct initialization literal.