There are plenty of very useful industrial uses for coal other than energy production.
e.g. Tar,asphalt, pure carbon (activated carbon filtration, carbon fibre ) acetic acid,urea,plastics and many specialised chemicals.
https://www.usea.org/sites/default/files/052014_Non-fuel uses of coal_ccc236.pdf