Catch CTRL-C event in user mode