Text this: A Smart Checkpointing Scheme for Improving the Reliability of Clustering Routing Protocols