I made another clean image and noticed that when i execute these set of commands
the sonars in rostopic list and rosnode list disappear.
ubuntu@testbot:~$ grep -i sonar /home/ubuntu/.ros/log/latest/master.log
[rosmaster.master][INFO] 2021-01-26 13:16:12,899: +PUB [/rosout] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,903: +SERVICE [/pi_sonar/get_loggers] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,907: +SERVICE [/pi_sonar/set_logger_level] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,921: +PUB [/sonars] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,925: +PUB [/pi_sonar/sonar_0] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,928: +PUB [/pi_sonar/sonar_1] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,930: +PUB [/pi_sonar/sonar_2] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,934: +PUB [/pi_sonar/sonar_3] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,940: +PUB [/pi_sonar/sonar_4] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:12,944: -PUB [/sonars] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,015: -PUB [/pi_sonar/sonar_0] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,021: -PUB [/pi_sonar/sonar_1] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,034: -PUB [/pi_sonar/sonar_2] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,066: -PUB [/pi_sonar/sonar_3] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,074: -PUB [/pi_sonar/sonar_4] /pi_sonar http://testbot.local:39081/
[rosmaster.master][INFO] 2021-01-26 13:16:13,084: -SERVICE [/pi_sonar/get_loggers] /pi_sonar rosrpc://testbot.local:57485
[rosmaster.master][INFO] 2021-01-26 13:16:13,100: -SERVICE [/pi_sonar/set_logger_level] /pi_sonar rosrpc://testbot.local:57485
[rosmaster.master][INFO] 2021-01-26 13:16:13,266: -PUB [/rosout] /pi_sonar http://testbot.local:39081/