Added check to see if I should autoreconnect or not