Make the script bootstrap protocol less prone to race conditions.