Updated scripts to use pid for terminating hostapd.