Made the github repository polling more robust with an automatic restart fall back.