Fixed warnings related to either log or rethrow this exception along with some contextual information.