Return connection to pool on connection error

Fixes some of the RAII issues with connections never released on bind error.
Forgive me as I don't have time to look for reference tickets right now