Destroy instance on quit