better handling of player quit