As Croxton explains, "the second the oyster is no longer alive, it lets go of the shell." In practical terms, that means putting your fresh oysters still in the shell in the freezer and letting them freeze but before doing so, it's best to check if they are still alive, by giving the shells a light tap, and throwing out any whose shells don't tighten or make any movement.