Fix program crashing because of SIGPIPE.

When one side of the socket crashes, the other side crashes with `SIGPIPE` when trying to call `sf::TcpSocket::send(...)`. This changes the behavior so that the call to `send` will fail with `sf::Socket::Error`.
 
    Program received signal SIGPIPE, Broken pipe.