MONDRIAN-2161 check cancel during sql fetch

@lucboudreau please review