Is there a way to put a timeout on a query so that if it runs longer than 5 minutes or something it is just automatically terminated?