Added VERSION as prescribed by the protocol
Gracefully handle WhatsApp connection losses