Bad idea. When implementing things like this, first ask yourself: "How can I use this to my advantage?"
Some examples:
Log out at a chest, loot, relog, switch instance, new chest.
Log out near a useful mob spawn, clear it out, switch instance, fresh spawns.
Log out at a dungeon, kill boss...