ESP8266 gets disconnected from Blynk after some time

Hi all,
I have made a simple home automation project with ESP8266 wifi module, Blynk and IFTTT. I am using the esp8266 module to control a 4 channel relay and all the controls work as expected on startup. However, after some time, the esp8266 module shows up as offline in the Blynk app and does not accept commands from Blynk app or the IFTTT integration. I am positive it is not an issue with my internet.
Any help would be much appreciated :slight_smile:
The code I am running is as below:

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "myauth";
char ssid[] = "myssid";
char pass[] = "mypass";

void setup()
  // Debug console
  Blynk.begin(auth, ssid, pass);

void loop()