Hi,
If it is correct that when you click on Terminate button, it should terminate the workitem from where you click the Terminate button, then I think your design is wron. As the workitem will be locked as you usin the workitem runnin with module pool screen.