Application and library updated to support WiFi disconections