[bugfix] error handling in pool