[BUGFIX] proper error handling for gtc