KMessageDialog: handle the dialog getting closed without using the buttonBox
The user could close the dialog without using any buttons in the button box (e.g. by pressing Esc), we still want to call done(), to notify the caller.
Edited by Ahmad Samir