Fixup for a13d0e3f
Add deinit-functionality to connection manager