Waits for the MQTT client to finish any work it must do, and for the TCP/IP session to disconnect.
Espera a que o cliente MQTT termine calquera traballo que deba facer e que a sesión TCP/IP desconéctese.