Add ctrl-c and ctrl-d handling in the SQL console module sql_console
Fix sql_console module