Fix undef sub in cleanup error.