For something that short, I would have just typed out the 'init q'.

And I usually use 'shutdown -r now' for rebooting rather than 'init 6'. More typing, and likely a linux-ism, but it would've saved you in this instance. :-)

Wade.