Added text file saving results when server shuts down.