Added catch for closing pool on single core machine.