Cleanup children in case of error.