It is unclear whether Docker Desktop was run on Windows or in the Ubuntu 20.04 Distribution.
I wouldn’t recommend running Docker Desktop itself in a WSL2 distribution.
This is consistently happening to me as well. It’d be nice to know what’s actually going on, docker should have no problems gracefully ending the WSL session on wsl shutdown. I’ll try to see if I can track down any logs somewhere