When a situations ends, it should restore settings like wifi state to the value before that situation was activated. So there is no need to do it explicitly.
I will now test how it fares when I leave home, and if it generally switches Wlan off reliably.