client: fix non-text command leak