Inside a procedure, the occurring of given circumstances could make necessary the interruption of the running activities, for example a failed data validation has to prevent write (see also How To - Add validation rules).
The only way to deal in such cases is to raise an exception.
To do so, drag from the procedure the Throw Exception activity or create a new exception with the Throw activity.