Fix bug 1211026 only set bootstrap error message in the end