This has come up several times. The various scripts run asynchronously, so there's no guarantee they will finish in a specified order.