stop writer thread when interrupted