you can prevent losing stuff to ender crashes while moving through a gate, most of the time.
If you make sure, you walk through a gate in one mouseclick, the game will still execute that movement command, even if you crash.
You will end up through the gate, and be able to log back in without losing inventory.