added ns error handling when handle not registered