added onError event for QueryInterval