Additionally, defaulting to shutting down the app when it can't reach your servers breaks all sorts of offline features an app may have.
I would strongly suggest to default to doing nothing when the script can't contact your servers. Alternatively you let me configure an HTTP endpoint that will be pinged when it can't reach you so at least I am aware the service is disrupted.