I'm giving another crack at fixing this now. I can probably fix it for 90% of the times it breaks the game, but there's so many edge cases with physics.
So glad you've enjoyed the game! (apart from being stuck in walls)
sorry i am late to reply but yes i was on a ladder and the few times it happened, either somebody died and i got stuck on a corpse, or i got hit and got stuck in the wall while going up the ladder