Garbage collection does not fully recover from error