Close client after scheduler disconnect

Oh yeh I was using the wrong form of the initializer, updated: 4a7adf2