add ctrl+d and ctrl+c error process