Check chown return value

Print an error and quit when we cannot chown the socket.
Merge pull request #193 from ilpianista/master

Check chown return value