Streamlined object destruction in editor and release mode.