This has to be moved to the endpoint class, as its used in dispersy.stop