Return -1 when failed to publish message