I've always thought, Michael, that the reference was deliberate, and very clever. Besides coming from the Scottish Play that the characters are performing, the "dagger of the mind" line is spoken by a character who is going insane from guilt, because of a murder -- which, as you say, is exactly what happens at the end of this episode. It's one of the all-time best titles.