In my case return worked. I was getting infinite outputs through my stored procedure with nested error as above mentioned in query. RETURN would work with this