close after render

Hi! Im rendering a movie with the renderque executor, is there a way to exit unreal after its done?

executor = subsystem.render_queue_with_executor(unreal.MoviePipelinePIEExecutor)