Change NS_LOG_ERROR to NS_FATAL_ERROR

this will stop the program on the error and facilitate the solving
process.