Changed behavior of calling connect on an already-connected device, fixes #39