Handle keyboardinterrupt