handle Ctrl-C, check cleanup error, add color support