Added code to remove server files when stop-the-train is found.