Small fix in error handling of recursive cleanup on GS