fixed #3868. when singleton deleted, it should not dispatch callbacks.