autorestart server on crash + fixed gui lags by using timers for delays