OK, it appears that we are losing the wlan0 configuration when hostapd is being started from /etc/init.d/piratebox.
Also note that killing hostapd on a system with a configured wlan0, will cause wlan0 to be de-configured.
Also note that killing hostapd on a system with a configured wlan0, will cause wlan0 to be de-configured.