Log oldid on error

Could help in debugging crashers.