Prevent some common mistakes when calling parent constructors and destructors