Those cases are very common in most companies. I think the best way to prevent it is through specifying take tasks for each worker. Then also ensuring that they are equipped regularly with needed skills. Also, treat your employees well so that they don't quit working for you.