fix CLI bug on EOF

this fix makes rio shell to treat EOF or ctrl+d as exit command