updated retry on heartbeat to 7 times.