Explicitly initialize socket with NULL.