add xbmc.abortrequest on every for or while loop