Pluto Sysimage

I am trying to generate a sysimage for my workflow in Pluto.

I have specified my notebook file as the precompile execution file in VSCode. However - I can’t generate a sysimage in VSCode.

I wonder whether I can not generate the sysimage as the Pluto notebook never closes (i.e. the server keeps listening until I press “ctrl + c”). How can I exit the notebook with a written command so that I can generate the sysimage?