Add code to exit when heartbeat call fails
Add code to exit when heartbeat call fails

Signed-off-by: Nathan LeClaire <38947c4d2b13dfd9789405506441b98609e8975e@gmail.com>
Signed-off-by: Sebastien DIAZ <18a63fbf67dfb9732f91b47e8579c09bd3121fe7@misys.com>

sebadiaz/machine,sebadiaz/machine,sebadiaz/machine