Catch greenlet loop error and exit thread anyway (still not correct but it works and the output is clean)