Remove all listeners in #close.