[multinode] fix finalize when no master connected