Catch sweep errors.