Open
Description
In theory, you shouldn't be able to get a query stuck in executing state, because the only ways through that code path are to success, or raising an error.
In practice you actually can, primarily in scenarios where the interpreter exits unexpectedly. Should probably add an exit handler to wrap up state machines.