Adds timeout to QueryOperation 

With this PR parallel query operations can be timed out.