Type /logout into the chat bar in Sherwood Dungeon to exit properly.
This matters more than it sounds. If you simply close the browser window or navigate away, your character can be left standing in the dungeon and your items may not save. Using the command lets the game commit your progress first.
Log out somewhere safe rather than mid-fight. Dying immediately after a session is the fastest way to lose whatever you were carrying, and an unfinished logout is effectively the same thing.
If the command does not appear to do anything, check that you are typing it into the game's chat field with the leading slash included and no trailing spaces.