Making sure to clear the exceptions after they happen.