[TASK] Add shutdown function while class cache build