Fix player quit properly