Automatically retry when not connected to the network