Logging off and back on is worth doing to be assured you won't lose items or rollback. Not something to do every time you wish to save but, in cases of level up, buying a rare-ish item or gaining a lot of gold, it is worth doing. It only takes a few seconds to do, and better safe than sorry when it comes to something that might be lost in a rollback and can't be replaced.