Stop and Wait ARQ fixes in shell