Fix double destruction in case of OOM