Prevent garbage collection of kafka until topics are out of scope