I guess that we are not too concerned about exceptions during the write, and changing this wont do much of a difference, but it still feels like you should close the `writer` before the `socket`.