Frustration is the enemy of good teaching practices. If you feel yourself getting frustrated at yourself or with a student for not being able to complete a task change the subject, move on to the next exercise, or just take a break. Don't allow frustration to change a positive teaching style into a negative one.