Reset the fail counter when closing the app while waiting to reconnect, closes #38