clear() removes all sub dispatchers and listeners from a dispatcher