if pruge fails, log the error and then raise the exception