A function to try to reconect when connection fail.
Update token 5 minutes sooner.
Try or reconnect when accessing to a container.