make sure the message implements refcounted to release it properly.