Added an error recovery mechanism for the GC Adapter.