improve fork death handling