"They hated him because he told them the truth"
I agree, there are tons of different approaches a DM should take instead of just killing their party for no reason.
The main one would be to have a discussion with their players about what kind of campaign they want to run, so that everyone is on the same page.
Everyone at the table has the right to have fun, players and DM alike. But it should be a team effort.