I am actually unsure if the code after SG_ERROR gets to be executed, @hushell did you test it?