Error processing, cleanup.