Reset the bool connected to false in the method disconnect().
Merge pull request #3 from smallfly/hotfix/reset_bool_on_disconnect

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