After his master died, Tsunetomo himself was forbidden to perform junshi, a retainer's ritual suicide, by an edict of the Tokugawa Shogunate combined with his master's disapproval of the tradition.
The Hagakure was written approximately one hundred years after the start of the Tokugawa era, a time of relative peace.