Close client after scheduler disconnect

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #34 from flynn/close-client-after-scheduler-disconnect

Close client after scheduler disconnect