Critical fix for program not srashing when being closed during pawn selection.