Abstract : Ultracold neutrons were stored in a volume, using a magnetic dipole field shutter. Radial confinement was provided by material walls. Low-field seeking neutrons were axially confined above the magnetic field. High-field seeking neutrons are trapped inside the magnetic field. They can systematically shift the measured neutron lifetime to lower values in experiments with magnetic confinement.