It is legally disliked (Makruh) for a menstruating woman or one in post-natal bleeding to be present at the bedside at the exact moment of death.

Funeral Rites (أحكام الجنائز) Part 1: Deathbed, Washing, and Shrouding