hang when directory "toListen" doesn't exist fixed