add debug info on context shutdown