Enhance run script to print error message.