test: don't close connection on write error

The echo server shouldn't close the connection when there's an error on
write. Instead simply echo the error message and allow the other side to
close the connection.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>