Update auto-disconnection on leaving page