pub fn stop_daemon() -> Result<()>
Stops a running daemon by reading its PID file and sending SIGTERM.