[Core] Fixed new render loop to process correctly form closing and switching between render controls.
[Core] Fixed new render loop to process correctly form closing and switching between render controls.

waltdestler/SharpDX,davidlee80/SharpDX-1,wyrover/SharpDX,davidlee80/SharpDX-1,TigerKO/SharpDX,weltkante/SharpDX,TechPriest/SharpDX,mrvux/SharpDX,VirusFree/SharpDX,sharpdx/SharpDX,dazerdude/SharpDX,TechPriest/SharpDX,PavelBrokhman/SharpDX,andrewst/SharpDX,sharpdx/SharpDX,wyrover/SharpDX,waltdestler/SharpDX,davidlee80/SharpDX-1,fmarrabal/SharpDX,TigerKO/SharpDX,dazerdude/SharpDX,dazerdude/SharpDX,manu-silicon/SharpDX,jwollen/SharpDX,VirusFree/SharpDX,mrvux/SharpDX,Ixonos-USA/SharpDX,weltkante/SharpDX,jwollen/SharpDX,Ixonos-USA/SharpDX,manu-silicon/SharpDX,fmarrabal/SharpDX,wyrover/SharpDX,VirusFree/SharpDX,RobyDX/SharpDX,weltkante/SharpDX,Ixonos-USA/SharpDX,TechPriest/SharpDX,jwollen/SharpDX,jwollen/SharpDX,fmarrabal/SharpDX,mrvux/SharpDX,dazerdude/SharpDX,RobyDX/SharpDX,TigerKO/SharpDX,PavelBrokhman/SharpDX,waltdestler/SharpDX,wyrover/SharpDX,TechPriest/SharpDX,waltdestler/SharpDX,fmarrabal/SharpDX,TigerKO/SharpDX,andrewst/SharpDX,weltkante/SharpDX,Ixonos-USA/SharpDX,RobyDX/SharpDX,PavelBrokhman/SharpDX,PavelBrokhman/SharpDX,manu-silicon/SharpDX,davidlee80/SharpDX-1,sharpdx/SharpDX,andrewst/SharpDX,VirusFree/SharpDX,manu-silicon/SharpDX,RobyDX/SharpDX