Changes to disconnect function
Changes to disconnect function

Add minor changes to keep the original logic for the disconnect
function the same, but with the added None check. In addition,
this adds a small delay after the MQTT disconnect socket call,
but before closing the socket to improve disconnect stability.

peterhinch/micropython-mqtt,peterhinch/micropython-mqtt