Add missing errEnd calls before to hds.c.

When the goto command was not activated the raiseHDSException
call was missed, leaving the err context open.