adding exception handler for the keyboard interrupt