fix error on reactor stop