Cell handover and getting messages across in a mobile environment

NB_IoT is not supporting handovers. So the NB_IoT device looses its connection in a mobile environment as soon as you drive outside your cell.
What is the best way to know whether your connection still exists?
Or should I do a reconnect just before sending each and every message?
In terms of the demo program in use:

I came up with:
//prepare the next message …
while (!connectToNetwork());
nbiot.sendMessage(message, cursor);

Is this the most efficient solution to get all messages across in a mobile environment?

Thanks for your help.