Should I stop my PostgreSQL server before reboot? Every week I do an apt-get upgrade and dist-upgrade on the server where my PostgreSQL is running. After that, I do a sudo reboot now.

Should I stop the PostgreSQL service before this reboot?
In theory the system should send it a stop signal and then wait for it to shutdown cleanly. But, I've seen this fail, with the result that the PostgreSQL had to go through crash recovery and any unlogged tables were truncated and had to be regenerated.  So I exercise an abundance of caution and manually shut PostgreSQL down before rebooting.