Don't crash if work queue function fatals in thread