cleanup resources in quitGame