Avoid destroying NULL socket if Open() fails