Added sys thread end inside while (compatibility if periodic)
Merge branch 'master' of https://github.com/ahoarau/m3core