Add extra handling to player quit to prevent errors