You mean when your computer restarts? (Obviously when it is off, then nothing is running)
Kafka defaults to store data in /tmp.
When you restart, then all that data (topics, connectors, consumer groups, etc) will be gone.
You need to change log.dirs
setting on the broker to use more persistent location.