Fix some mysql bits
Properly mark a run as cancelled if all the nodes were listed to be cancelled
Actually send the end of output marker with the stream