Fixed bugs relating to failed connections and active client lists. Added isConnected() to the Client prototype, this fixes #3