remove listeners on shutdown