Check chown return value

Print an error and quit when we cannot chown the socket.

Closes #186