Thousands of jobs are risk as the Gupta mining empire collapses.