To cancel a computer process because of (or to avoid) an error (5)
I believe the answer is:
abort
(Other definitions for abort that I've seen before include "Miscarry" , "Cut short" , "Terminate prematurely" , "Stop prematurely" , "Bring to premature conclusion" .)