Fix a reconnection issue.
Fix a reconnection issue.

- Naoki's patch to avoid multiple attempts to re-connect.
- Show debug message prefix.
- Close web socket connection (which could be not opened) when there was an error.
  - This addresses an issue that the mode-device is not attempt to reconnect when the cloud is not reachable (ENOTFOUND).

moderepo/node-device-lib