eg the agent could actively monitor memory/cpu/time usage of a query and cancel it if it's taking too long?