Move Bootstrap construction inside of try block