Filter out empty lines in the commands.
Made CTRL-C work.