$stopRoute and $isRightResource now checked in the handler and after functions