Reset the bool connected to false in the method disconnect().

Hi,

It seems to me that the boolean 'connected' should be set to false when the method disconnect() is called.

Let me know.

Thanks,

Hugues.