add send retries when modem is not connected

The module now retries the notification for three times if the modem is
not connected or has no GSM connection.