Adding type information for thread pool bad alloc