add special error check for exit of shocco