Unfortunately that's hopw the pathing works in the game, when someone closes a gate right when you click behind it...
Not much you can do about it, there is tons of people spam closing the gates so ther eis not much of a point to stay at a gate and get 0 activity