improved pool's stopping logic, more tests