I don't have a detailed knowledge of how the whole Runescape system works, but I think Jagex tells you not to "x out" mainly so you won't die unexpectedly. As others have said, your character will remain in game for a while if you don't log out normally. If you're in a safe area, that's not a problem, but if you're in a dangerous area such as the wilderness, that could mean your death.