connecting cli with the daemon.
python3, make the daemon shutdown gracefully