[PATCH 3/4] buildman: Handle exceptions in threads gracefully