Fixed renederer not getting removed from the render window