Added try catch on Unregister("basic") call to debug