revert to call sub.close() again as remove_endpoint(sub) is actually not working (at least --with-pycc). OOIION-987.
Merge pull request #1331 from carueda/2013-09-18_OOIION-987

revert to call sub.close() again as remove_endpoint(sub) is actually not...