Query End notifier

Why are we returning int, when the return value is not checked anywhere?