HRCPP-171 Socket leak on failed connection attempt