avoid CLOSE_WAIT state.