Rocks falling on units just make the units move out of the way (regardless of whether they are attacking something other than the rocks, holding position, or patrolling), however if workers in the fall path are mining gas or minerals, they will be killed.