Checks for exceptions