Fix flush and stop connection on delete_user(), fixes #210