Rebooting or restarting a system will clear all memory and processes, including Avast VPN currently running vpn connections.
You can automatically have Avast turn on your vpn when you connect to the internet (see attached png below):
If there is no current internet connection, Avast VPN will not be 'on', as you say.