Release the connection after removing it from the list

This got accidently removed in the
0d29579baffd4f31a3ec39590117f4fee821694d change so this reintroduces
it.

Change-Id: I8d1eabc9f7f42852c29173f0034a9d6a2183e35a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Sergey Korepanov <SergeyKorepanov@gmail.com>
Merge remote-tracking branch 'origin/5.4' into dev

Change-Id: I78af1c606fb7a620559a47cb5369dd98004834de