add argument for local address
fix logic error with localhost address
kill the client after climbing ladder