Handle keyboard interrupt and close event loop
Handle keyboard interrupt and close event loop