I'm not 100% confident in my fix here. I DID find a bug - monsters would have been unable to teleport to a square containing a monster corpse. And I did find a theoretical problem that could happen (and which could lead to the burst of noise you heard). I've definitely fixed the former issue, may or may not have fixed the crash. Time will tell.