Attach kind of lighttight bag to the eject-end of the camera in a way that the film would be ejected into the bag.
As the film is not fully ejected, but held by the camera, you could attach cardbord to the camera in a way that it fully covers the image side of the film.