public void deliverMessage(Message msg, MessageHandler handler) {
        if (destroyed.get()) {
            msg.discard();
        } else {
            handler.handleMessage(msg);
        }
    }
<p>Convenience method to post a {@link Task} that delivers a {@link
Message} to a {@link MessageHandler} to the queue of tasks to be
executed.</p>

@param msg     The message to send.
@param handler The handler to send to.
messagebus/src/main/java/com/yahoo/messagebus/Messenger.java