xseg-tool: Handle keyboard interrupt