Fixes #18 - forgot conn.Close()
Simplified cli.takeInput()