Hi, also new here like yourself. I have yet to die from it though!
The security code you type in is either a word from RO itself or from my personal experience a 3 digit number. Our experiences are definately different and while maybe there are things that can be done to better this system... How it works right now is just fine.
If the suggestion were to simply warp you out of the map you're in to another one by default and then have you type the code-- That would be a different story, and one that might be easier for the NPC script to read out.