Added support for cntl c exit