This problem happens quite frequently when I exit xemacs completely.