The Wilmington, Massachusetts-based company said it had a loss of $4.22 per share. Earnings, adjusted for non-recurring costs, were $2.66 per share. The results topped Wall Street expectations.