close conn in case of conn fail