added pointers so allocated slots and channels are stoped on module exit