(in cleanup) Can't call method "DESTROY" on an undefined value at ... at line ...