Set the quicktext exactly as that, then type "/quit <reason>" i.e. /quit sleep.
This will send a message to your contact saying
* ddunk has quit (reason: <reason>)
and then close the window.
(btw: fix the grammar if you want, it's not quited, it's just quit
)