Prevent reading address information from potentially closed socket