Plugged some memeory leaks. Detached callback now called after component.deinitilize.