If you closed the back quickly, and the film was tightly wound, you may have spoiled fewer than you expect (in my experience ).
Some films are relatively opaque, and the outer layers may have protected the rest of the film. Don't throw the film out, try processing it.