New Hampshire fire officials say a Massachusetts man who set himself on fire in front of a Keene courthouse sent a letter to a local newspaper describing his frustration with the court before he took his own life.