Rearrange renderer shutdown process