If you place a box on a button, get under a gate, then grapple the box you get stuck on the door and have to restart the game.
Similarly, if you have a box on a button and stay to the side of a gate (close enough for it to open), then grapple the box so it goes under the gate the box gets stuck on it.