ignore socket hangup. fixes #314

This should fix the ECONNRESET error on windows.   @klammbueddel can you verify this?