Stopp client when inputCommands ended.