Cleanup of listeners and notifications.