Fix the stop method on the single message consumer
Add parameters for the consumers and publishers