Geothermal energy and seismic activity

What is the relationship between geothermal energy and seismic activity? How do you think the risks in this relationship could be lessened? Explain your answer.