Fixed render context outliving the main