netifd: bring wifi down before shutting down