cluster: fix cluster.disconnect getting called to early


cluster.disconnect was getting called after just one worker disconnects. The docs states that it should be called after all workers disconnect.