Trying to track down and prevent a random crash.