made keypad mqtt more robust, reconnect on socket error