Clean up old states file