Add debug for aborted queries

Add debugging to see what's happening with aborted queries.