[PATCH 1/1] cmd: Handle cntl-c events correctly