edit-dialog: fix memory leak

Also, evolution set altrep to NULL usually, we better do the same.
manager: don't query disconnected clients
manager: add debug statements