Adding remove observer functions during dealloc.