Detect thread crashes, attempt to restart