reactor stop gracefully