AutoRestart should wait max 10 seconds for commands to execute

Avoid restart not happening if server is crashed