You say the problem was the lid being open, but that was only a minor detail. The real problem was that you decided to carry around coffee that you had no intention in drinking.