CCBC-239 Do not use socket after failout

Change-Id: I42c80cb8156354d2ad0e24954ff099d64fbb2a05