Change socket_disconnect() to return int value.

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