lose their cool doesn't just refer to violence, it can refer to getting angry, shouting, speaking harshly, insulting someone, slamming a door, etc. Violence is a step beyond "losing your cool"