Kill worker when IOException occurs.