Hi forum,
Finally figured what was causing the problem.
After downloading the jbpm code was able to figure out that there was a problem with the MinaTaskClientConnector class in the disconnect method.
The connector variable was not being disposed and that's why not closing the socket thread.
So created a Jira issue and posted a fix, lets hope it gets integrated with the main project.
Regards,
npereira