clean interrupt of the thread