simplified the termination procedure

Fixed to stop at only Ctrl + C