Handle EOF during the exit prompt

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>