fixed server not restarting (just resetting) when generation ends