Increased timeout, added pool shutdown on error.