exit the script if patch fails