Unfortunately we can't dictate to others how they enjoy themselves, human kids etc love the big bangs. Though im sure some try to be considerate if they realise the problem, not everyone thinks of these things.
If you are friendly with the farmer could you at least find out what time they are setting them off? Ask them if they could get the loud ones over quickly?
I agree about staying with them, door shut and radio on, + cover windows?
If OH is doing anything noisy I stay and talk to the goats, they come to me for reassurance, apart from one who makes herself small in a corner :-(.