Fix potential crash when issuing "tx distr stop" command.