Wait for ana mod threads before end job