Update closh.c

Got timeout to work sequentially