exit script if processing argument fails