Fixed double connection delete
Merge pull request #812 from dswd/fix-delete-error

Fixed double connection delete