Instead of killing the process, send SIGINT and cancel query on interupt.