Revert "Using send() instead of sendto() for UNIX-domain sockets."

This reverts commit 6de2be0389f2a11ad56dc6fce91fd686bcec4c89.
Catching exceptions in the timeout loop