Stop the Stats daemon properly when killed.

The Stats daemon was leaking a socket when killed (after closing
Circus for instance). It was an issue when using an IPC socket for
stats_endpoint, as the socket file was not being deleted.