destroy only if associated record is destroyed

fixes #5147