Modify how to use socket's accept in echo.groovy and stub.groovy