fixed bootstrap and teardown. discovered a leak when running cli bootstrap command. currently not fixing it, let threads leak.