I'm attaching here a proper patch for the one supplied in the following task:
http://sourceforge.net/support/tracker.php?aid=2910894
This fixes the problem where the _cancelerTimer is not canceled check close() is called - and thus it wasn't cleanly exiting.
Replacing first patch
Integrated in the latest sources