Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Cash flows from operating activities:    
Net loss $ (107,540) $ (161,573)
Adjustments to reconcile net loss to net cash (used in) provided by operating activities:    
Income from discontinued operations, net of income taxes 0 (906)
Loss on the sale of TFI 1,235 1,724
Depreciation and amortization of intangible assets 46,070 52,465
Amortization of debt issuance costs, net 4,329 3,638
Accrued interest added to debt principal 20,240 0
Stock-based compensation 908 1,858
Impairment of long-lived assets 10,452 0
Impairment of goodwill 0 104,721
Gain on sale of UGSI (1,747) 0
Loss (gain) on disposal of property, plant and equipment 3,298 (1,198)
Bad debt expense (516) (695)
Change in fair value of derivative warrant liability (2,574) 0
Loss on extinguishment of debt 674 1,011
Deferred income taxes 70 21
Other, net 5 364
Changes in operating assets and liabilities:    
Accounts receivable 20,516 58,985
Prepaid expenses and other receivables (227) (1,294)
Accounts payable and accrued liabilities (14,379) (4,805)
Other assets and liabilities, net (136) 1,342
Net cash (used in) provided by operating activities from continuing operations (19,322) 55,658
Net cash used in operating activities from discontinued operations 0 (708)
Net cash (used in) provided by operating activities (19,322) 54,950
Cash flows from investing activities:    
Proceeds from the sale of TFI 0 78,897
Proceeds from the sale of property, plant and equipment 9,954 12,339
Purchases of property, plant and equipment (2,613) (16,564)
Proceeds from the sale of UGSI 5,032 0
Change in restricted cash 3,163 (4,250)
Net cash provided by investing activities from continuing operations 15,536 70,422
Net cash used in investing activities from discontinued operations 0 (181)
Net cash provided by investing activities 15,536 70,241
Cash flows from financing activities:    
Proceeds from revolving credit facility 118,533 0
Payments on revolving credit facility (176,428) (81,647)
Proceeds from term loan 24,000 0
Payments for deferred financing costs (1,084) 0
Issuance of stock 5,000 0
Payments on vehicle financing and other financing activities (4,957) (9,468)
Net cash used in financing activities from continuing operations (34,936) (91,115)
Net cash used in financing activities from discontinued operations 0 (105)
Net cash used in financing activities (34,936) (91,220)
Net (decrease) increase in cash and cash equivalents (38,722) 33,971
Cash and cash equivalents - beginning of period 39,309 15,416
Cash and cash equivalents - end of period 587 49,387
Less: cash and cash equivalents of discontinued operations - end of period 0 0
Cash and cash equivalents of continuing operations - end of period 587 49,387
Supplemental disclosure of cash flow information:    
Cash paid for interest 22,290 22,775
Cash paid for taxes, net $ 304 $ 281