Close connection when handle goroutine is terminated
Program terminates after remote side is closed
Add some CLI options