The horror film’s tragic storyline hit especially close to home as the director grappled with family tragedy in real life.