This is a known irritation rather than something you are doing wrong—other players report the same logout failure.
Workarounds that help most people are clearing the browser cache or closing the session entirely and reopening it. If it persists, it is worth reporting to Nexon support, since the fault sits on their end.