HIVE-2113. In shell mode, local mode continues if a local-mode task throws exception in pre-hooks (Siying Dong via Ning Zhang)