handle CTRL+C CTRL+Z event