fix close_wait