Sounds like you might not have had the focus rail fully retracted before you attempted to close the camera and something bent.
If the semi-retracted front lens standard straddles the folding hinge and you push upward, it would try to force the lens standard off the rails, so it may be partially pushed upwards and jammed.
Have you tried placing the camera on a solid, stable surface and applying gentle, but firm downward pressure on the top of the lens standard?
It might pop into place, but be careful.