Refactored _registerHandler into _activateInstance to ease closures