Added 3 send attempts before exiting