call unregister functions to remove handlers etc, remove debug console log