Added ctl-c ctl-d handlers