Bug 1074419: Close received socket file descriptors on errors, r=shawnjohnjr