Test run when an exception occurs.