Client kips disconection on RBPi2 B+

Hi,

I have problems because the client on my pie 2 kips disconnecting after some time. Usualy hapens 1 or 2 times in 2 days.
Is there any way to check with a code the status of the client and if its disconnected to run it another time?


var Blynk = require('blynk-library');
var Gpio = require('onoff').Gpio;
var AUTH = 'xxx';
var blynk = new Blynk.Blynk(AUTH);