Handle master removal and target changing when loading logs