Fix flush and stop connection on delete_user(), fixes #210
Merge pull request #215 from Nordaaker/fix/delete-user

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