revert to call sub.close() again as remove_endpoint(sub) is actually not working (at least --with-pycc). OOIION-987.