implement payload, exit read threads by using payload