The dynamics of the outer boundaries in global simulations of planetary magnetospheres