Fix exceptions and keyboard interrupt handling in module execution
Remove redundant keyboard interrupt handling in sql_console