Add a list to keep all registered callback references to avoid them
being GC'd.