shell script to wait for ctrl+c on exit