Shutdown socket for both read and write.

Signed-off-by: Thiago Farina <tfarina@chromium.org>