Added support for removing all messages queued in a handler