handle keyboard interrupt exceptions