error writting socket