Being a screenwriter isn't easy, and neither is maintaining a clear understanding of the characters' motivations and personalities while tying up loose ends so a film makes sense from beginning to end.
Sometimes we think that humans should have solved all mysteries, but this isn't always possible, as clues, evidence, or circumstances can complicate the solution.