Precaution for models being deleted through cascade. Fixes #42