Preserve the original exception and log it