1. A mobile terminal comprising: a communications interface; a battery; the mobile terminal in conjunction with the communications interface is configured for: establishing a first connection over a network between a mobile terminal and a remote entity; sending keep-alive messages at varying intervals via the first connection in response to inactivity in the first connection; wherein the first connection is disconnected after a first period of inactivity; establishing a second connection over the network between the mobile terminal and the remote entity; wherein the second connection is disconnected after a second period of inactivity, and sending keep-alive messages in response to inactivity in a subsequent connection, wherein the keep-alive messages are sent at a safe interval that meets a criterion of statistical confidence that is based on the first period of inactivity and the second period of inactivity.