Clean up the docker socket on termination of the daemon.

Please review. I feel like there's more cases here I'm missing, but I'm not sure where they might be.

Thanks!
(as usual)