Having the filter turned off for 5 hours shouldn't cause anything to die. I believe something else killed your shrimp, either ammonia, nitrites, nitrates, or low SG. My guess (totally a guess) is low SG - do you use a hydrometer?
We need more specifics, what is in the tank, tank parameters, etc.
Not sure how you acclimated these either.