[fix bug 885504] [fix bug 837787] Really delete and logout user on delete.