Merge "Stop the created handler threads on the tests" into main