Prevent putting an infinite number of messages into the queue