Actually, I don't think you did anything seriously wrong there. Take it easy - some drivers are crazy.
However, each time you enter an intersection, even in a big one, make sure you will be able to leave after waiting. So, if you see a traffic jam already happening in the intersection, please don't enter it even the light is green - try not to cause a dead lock.