Try to solve deadlock by interrupting threads