At the moment when a particle moves out of the box, the particle remains in the cell it previously belonged to, meaning it still can interact with the rest of the system if in range.
I don't think this is how it should work, however I don't want to worry about how this boundary should actually be implemented yet - I think a particle leaving the box is currently regarded as undefined behaviour.