[Java] Terminate Actor coordinator

Test to be done. JS test broken because of refactoring !