hints: Store id() of destroyed frames.

Fixes #305. #152 should still be okay.