Possibly fixed the crash in avahi by adding a short delay between starting avahi threads, not sure if correct fix though