Use restart waiter to wait for worldregen directory delete finish instead of direct access to restart shutdownhook