The Blynk.begin command is a blocking command. If it can’t establish a connection to the Blynk server then the code execution will stop at that point, so the Mega will be unresponsive.
If you look at topics like this, then you’ll see the solution…
Pete.