Connecting closures to device or container