Shrumeo, I would say you need work with no exchange of energy from outside the system.
Your questions about "where is the heat going?" and "into the other cosmos?", does no make much sense to me. I'm work under the assumption that the cosmos is total existence and therefore, heat or energy is confined to this one and only cosmos.
I can try to phrase the question a different way if you are truly interest.
Thanks for your reply.