Additional check to prevent rare crashes