Threaded bootstrap.
Now with error handling