Completion: fixed a bug with complete.
Dmlenu: gracefully shutdowns the X connection when the completion is done.