Fix 643

Add the ability to kill a query in `ACCEPTED` status, plus tests.

Fix #643