Disconnect is not automatically detected. The app only realizes a connection has ended after attempting to send data and waiting a few seconds.