#8 return unregister function in registerHandler