This is a possible fix for #2. It changes the respawn function to act like a team change (e.g. spectator to player). I can't test this tough because I don't seem to be able to reproduce the crash.