vws should proprerly shut down a socket, even if it need to exit with non-zero code.

Now some command function return non-zero as indication of the error, but calling code doesn't propagate it to the OS.

Python try-finally should help.