fix server crashes when player quits