No retrying if the replicator goes offline

Before retrying check if the replicator is offline or not. Not doing retry if the replication is in offline state.