Looks like the :abort return value isn't handled by the module, neither by the Scanner mixin. So this :abort hasn't lot of sense. I guess you can just return. It applies to all the :abort returns on this accessfile() function.