Made sure that it only sets one retry for each function when the internet is disconnected