You can't simply walk out while you're leader — you have to hand the guild over first.
Wait until another member is online, then right-click their name in the roster. Somewhere in that menu you'll see an option to make them Guild Master. Once the transfer is complete, right-click your own name and choose Leave Guild.
It's worth a quick word in guild chat before you do it. Handing leadership to someone who isn't expecting it tends to cause more drama than the departure itself.