Close write end of socket on EOF when proxying raw

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>