clean up after listeners on shutdown
rough kbucket implementation, tests and cleanup to follow