let cb.onFailure in LoginHandler to exit program, which is called after reconnect attempts reach max allowed number; call LoginHandler.onFailure instead of cb.onFailure to allow failure in establishing MQTT connection to restart from setting new TCP connection