We don't get ownership of the caps that are passed in, and doing so causes crashes at a later time. Fixes #546