It is possible that another instance of the ao writer is active
when aow_close() is called. Calling ao_shutdown() in ao_close()
might disturb the other instance and lead to a segmentation fault.
Fix this by calling ao_initialize() only once during aow_init()
and never call ao_shutdown() any more.