Geoffrey Chaucer was nearly executed by the Merciless Parliament in 1388. That parliament met from December 1387-June of 1388. In April and May dozens of Richard II’s friends and advisors were executed by the Lords Appellant who were trying to both take over rulership and revenge themselves for some of Richard’s actions against their estates and trying to make peace with the French, of all things. Chaucer had been a member of the previous parliament in 1386, the Wonderful Parliament. He had been nominated because he was a Justice of the Peace from Kent, a position given him by Richard II, in an attempt to stack the Parliament with those sympathetic to the beleaguered king. Chaucer's wife likely died in 1387, and Geoffrey disappears from the record for a bit. He was not appointed to other office until 1389, when John of Gaunt returned and the political pendulum swung the other way. So he was out of politics for about a year and a half, and it was during that time a great many of his friends and fellow-supporters of Richard were executed.
He was an important member of the courts of Edward III and Richard II, and was especially close with John of Gaunt. He was sidelined at just the right time, it seems.
About those executions. This is one more example of how their lives were different than ours, and we should not pretend that we understand what their lives were like nor comment on their decisions and actions without putting in a fair bit of thought. Executing a bunch of your political opponents in your own country, including family members, was not terribly unusual. Internal violence in Western Society has greatly reduced over tha last seven centuries, as we have discussed before. What we think of as normal life, the way everyone lives, the default position of society, is nowhere near universal even today, and fairly rare in history. As a side note, it brings fear to my heart when people tolerating violence in our society do not understand this. Civilisation is a fragile thing. I don't think they get that.