Fix bot list handling, tests.
Handle error.