Fix a bug that exit the program when occurred build error.